#include "task.hpp"
#include "thread.hpp"
#include <pthread.h>
#include <stdlib.h>
#include <unistd.h>

int main()
{
  threadpool<task> q;
  q.InitPd();
  srand((unsigned)time(nullptr));
  char arr[]="+-*/%";
  while(true)
  {
    int a=rand()%100+1;
    int b=rand()%100+1;
    task abc(a,b,arr[a%5]);
    q.push(abc);
sleep(1);
  }

  return 0;
}

